#pragma once
#include "SpriteShaders.h"
#include "../Utilities/utilities.h"
#include "Vertex.h"
class Sprite
{
	float totalTime, duration;
	int numSpritesX, numSpritesY, numSprites;
	GLuint vbo, texture_id;
	GLint uTexture, aTexCoord, uDx, uDy;

	SpriteShaders myShaders;
public:
	Sprite(void);
	int Init(char* texture_path, float duration, float width, float height, 
			 int num_sprites_X, int num_sprites_Y, int num_sprites);

	void Draw();

	void Update(float deltaTime);
	~Sprite(void);
};
